package com.wms.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wms.dto.TaskDetailDTO;
import com.wms.dto.WarehouseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("盘点任务库区信息")
public class StockTakingTaskDetailGroup {
    @ApiModelProperty(value = "任务id")
    private Integer taskId;

    @ApiModelProperty(value = "盘点单号")
    private String code;

    @ApiModelProperty(value="任务状态")
    private Integer status;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "盘点仓库id")
    @JsonIgnore
    private Integer stockId;

    @ApiModelProperty(value = "盘点仓库名称")
    private String stockName;

    @ApiModelProperty(value = "库区名称")
    private String area;

    @ApiModelProperty(value = "盘点人")
    @JsonIgnore
    private Integer userId;

    @ApiModelProperty(value = "盘点人名")
    private String userName;

    @ApiModelProperty(value = "盘点时间")
    private LocalDateTime takeDate;

    @ApiModelProperty(value = "备注")
    private  String note;

    @ApiModelProperty(value = "审核结果")
    int auditStatus;

    @ApiModelProperty(value = "审核人姓名")
    private String auditUserName;

    @ApiModelProperty(value = "审核时间")
    private LocalDateTime auditDate;

    @ApiModelProperty(value = "审核意见")
    private String auditOpinion;

    @ApiModelProperty(value = "库区列表")
    private List<WarehouseDTO> warehouseList;

    @ApiModelProperty(value = "任务生成时间")
    private LocalDateTime createTime;
}
